import service from "../../server/request";

export function getAllOrder(data:any) {
  return service({
    url: "/order/all/xyz",
    method: "get",
    params: data,
  });
}

export function getOrderByJwt(data:any) {
  return service({
    url: "/order/jwt",
    method: "get",
    params: data,
  });
}

export function createOrderByJwt(data:any) {
  return service({
    url: "/order/jwt",
    method: "post",
    params: data,
  });
}

export function getOrderByShopIdAndJWt(data:any) {
  return service({
    url: "/order/jwt/shopId",
    method: "get",
    params: data,
  });
}
export function deliverOrderByIdAndJwt(data:any) {
  return service({
    url: "/order/jwt/send/id",
    method: "get",
    params: data,
  });
}

export function payOrderByIdAndJwt(data:any) {
  return service({
    url: "/order/jwt/pay/id",
    method: "get",
    params: data,
  });
}



